package models;


import java.util.*;
import javax.persistence.*;

import com.avaje.ebean.Page;
import play.db.ebean.*;
import play.data.format.*;
import play.data.validation.*;

/**
 * User: gipxy
 * Date: 4/22/12
 */

@Entity
public class ProductOfOrder extends Model{

    @Id
    public Long id;

    @OneToOne
    public Product product;

    @ManyToOne
    public CustomerOrder customerOrder;

    @Constraints.Required
    public String soLuong;

    @Constraints.Required
    public String donGia;


    public static Finder<Long,ProductOfOrder> find = new Finder<Long,ProductOfOrder>(Long.class, ProductOfOrder.class);

}
